import service from "@/utils/request"
interface OrderSummaryType {
  brand?: string,
  check?: string,
  closeEndTime?: string,
  closeStartTime?: string,
  deliveryEndTime: string,
  deliveryStartTime: string,
  orderEndTime: string,
  orderId: string,
  orderStartTime: string,
  pageNum: number,
  pageSize: number,
  sampleType: string,
  seasonType: string,
  style: string,
  person:string
}
export interface TableListType {
  list: [],
  total: number,
  pageNum: number,
  pageSize: number,
  totalNum?: number
}
interface SelectListType {
  brands: [],
  samples: [],
  seasons: [],
}
export default {
  // 获取表格列表
  getTableList(params: OrderSummaryType) {
    return service.post<any, TableListType>('/pcOrder/pcOrderList', params)
  },
  // 获取下拉列表
  getSelectList() {
    return service.get<any, SelectListType>('/pcOrder/getOrderCondition')
  }
}